package com.dhcc.bpm.modules.alarm.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * 告警通知表实体类
 *
 * @author ccab
 * @since 2020-07-06
 */
@Data
@TableName("OPC_ALARM_NOTICE")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AlarmNotice对象", description = "告警通知表")
public class AlarmNotice extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 告警通知名称
	*/
		@ApiModelProperty(value = "告警通知名称")
	private String noticeName;
	/**
	* 告警策略
	*/
		@ApiModelProperty(value = "告警策略")
		@JsonSerialize(
				using = ToStringSerializer.class,
				nullsUsing = NullSerializer.class
		)
	private Long policyId;
	/**
	* 通知对象
	*/
		@ApiModelProperty(value = "通知对象")
	private String noticeUser;
	/**
	* 通知方式
	*/
		@ApiModelProperty(value = "通知方式")
	private String noticeType;
	/**
	* 通知描述
	*/
		@ApiModelProperty(value = "通知描述")
	private String noticeMsg;

	/**
	*网关编码
	*/	
	@ApiModelProperty(value = "网关编码")
	private String gatewayCode;
	/**
	* API编码
	*/
	@ApiModelProperty(value = "API编码")
	private String apiCode;
	/**
	* 环境参数
	*/
	@ApiModelProperty(value = "环境参数")
	private String alarmEnv;
//
//	/**
//	 * 通知对象
//	 */
//	@ApiModelProperty(value = "通知对象名称")
//	private String noticeUsername;
//
//	/**
//	 *网关编码
//	 */
//	@ApiModelProperty(value = "网关名称")
//	private String gatewayName;
//	/**
//	 * API编码
//	 */
//	@ApiModelProperty(value = "API名称")
//	private String apiName;

}
